home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
text
/
info
/
ecs.txt.pp
/
ecs.txt
Wrap
Text File
|
1994-11-17
|
23KB
|
540 lines
ECS HARDWARE and the GRAPHICS LIBRARY
-------------------------------------
Typed for YOU by Conqueror of AGILE
Thanks to Galactus!
If you are interested in the information about the include files, structures
in the graphics.library and how to program the ECS with Operating System
friendly routines, contact me on one of our boards and I can mail or fax
it to you. (I didn't bother to type it all in, at least not now, it was
boring enough to type this! I am no [RYGAR]!) This was the most interesting
part so thats why you got it!
Contact me at: Pleasure Dome +46-16-127263
Graveyard +44-91-5160560
Illicit Illusion +1-717-399-3160
Datastorm +1-703-347-2078
Twilight Zone +49-511-456592
Or write to: Agile - BOX 12O44 - 63O 12 Eskilstuna - SWEDEN
----------------------------------------------------------------------------
The new Enhanced Chip Set consists of compatible revisions to the Agnus
and Denise custom chips. V2.0 graphics.library software makes it possible
for these chips to display images in new resolutions, at new monitor
scan rates and with new sprite and genlock abilities.
With these new features come certain new responsiblities for customers of
the graphics.library.
With the ECS Agnus, the V36 graphics.library supports the new programmable
scan rate registers to provide multi-sync and bi-sync monitor capability.
The new SuperHires mode provides 35ns pixel rates and sprite positioning
at 70ns rates. Support for big blits (up to 32K x 32K) is provided for all
graphics functions if the ECS Agnus is present.
With the ECS Denise, the V36 graphics.library provides display window start
and stop with explicit control over larger ranges than was possible before.
There are new color register interpretations as part of the SuperHires mode.
Genlock control has been expanded for more flexibility. Borders may be
explicity transparent or opaque, color registers other than zero can control
video overlay and a bitplane mask may be used for special-purpose video
masking concurrently with the other genlock features.
The register map listed below shows the changes and new registers in the
Amiga's custom chips.
A=Agnus chip, D=Denise chip, P=Paula chip, W=Write, R=Read, S=Strobe
----------------------------------------------------------------------------
ADD REGISTER V2.0 R/W CHIP FUNCTION
----------------------------------------------------------------------------
004 VPOSR chg R A Read vertical most sig. bits (and frame flop)
012 POT0DAT chg R P Pot counter data left pair (vertical, horiz)
014 POT1DAT chg R P Pot counter daya right pair (vertical, horiz)
020 DSKPTH chg W A Disk pointer (high 5 bits, was 3 bits)
02E COPCON chg W A Coprocessor control
03E STRLONG chg S D Strobe for identification of long horiz line
042 BLTCON1 chg W A Blitter control register 1
050 BLTxPTH chg W A Blitter pointer to x (high 5 bits)
05A BLTCON0L new W A Blitter control 0, lower 8 bits (minterms)
05C BLTSIZV new W A Blitter V size (for 15 bit vertical start)
05E BLTSIZH new W A Blitter H size and start (for 11 bit H size)
078 SPRHDAT new W A Ext. logic UHRES sprite pointer and data id
07C DENISEID new R D Chip revision level for Denise (video out chip)
080 COP1LCH chg W A Coprocessor 1st location (high 5 bits)
084 CPO2LCH chg W A Coprocessor 2nd location (high 5 bits)
0A0 AUDxLCH chg W A Audio channel x location (high 5 bits)
0A6 AUDxPER chg W P Audio channel x period
100 BPLCON0 chg W A,D Bit plane control (miscellaneous control bits)
104 BPLCON2 chg W D Bit plane control (video priority control)
106 BPLCON3 new W D Bit plane control (enhanced features)
142 SPRxCTL chg W A Sprite x position and control data
1C0 HTOTAL new W A Highest number count, horiz line (VARBEAMEN=1)
1C2 HSSTOP new W A Horizontal line position for HSYNC stop
1C4 HBSTRT new W A Horizontal line position for HBLANK start
1C6 HBSTOP new W A Horizontal line position for HBLANK stop
1C8 VTOTAL new W A Highest numbered vertical line (VARBEAMEN=1)
1CA VSSTOP new W A Vertical line position for VSYNC stop
1CC VBSTRT new W A Vertical line position for VBLANK start
1CE VBSTOP new W A Vertical line position for VBLANK stop
1D0 SPRHSTRT new W A UHRES sprite vertical start
1D2 SPRHSTOP new W A UHRES sprite vertical stop
1D4 BPLHSTRT new W A UHRES bit plane vertical start
1D6 BPLHSTOP new W A UHRES bit plane vertical stop
1D8 HHPOSW new W A DUAL mode hires H beam counter write
1DA HHPOSR new R A DUAL mode hires H beam counter read
1DC BEAMCON0 new W A Beam counter control register (SHRES,UHRES,PAL)
1DE HSSTRT new W A Horizontal sync start (VARHSY)
1E0 VSSTRT new W A Vertical sync start (VARVSY)
1E2 HCENTER new W A Horizontal position for Vsync on interlace
1E4 DIWHIGH new W A,D Display window - upper bits for start, stop
1E6 BPLHMOD new W A UHRES bit plane modulo
1E8 SPRHPTH new W A UHRES sprite pointer (high 5 bits)
1EA SPRHPTL new W A UHRES sprite pointer (low 15 bits)
1EC BPLHPTH new W A Vram (UHRES) bit plane pointer (high 5 bits)
1EE BPLHPTL new W A Vram (UHRES) bit plane pointer (low 15 bits)
Determining Chip Revisions
--------------------------
The V36 graphics.library field GfxBase-ChipRevBits() contains bit defini-
tions to tell you whether ECS is currently installed and activated. These
bits are derived from registers new or changed on the ECS chips.
The bit GFXF_HR_AGNUS indicates that HiRes Agnus from the ECS is installed.
This is derived from the Agnus VPOSR register. The VPOSR register is
defined as:
VPOSR - Read vertical most significant bits (and frame flop)
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Use LOF I6 I5 I4 I3 I2 I1 I0 LOL - - - - V10 V9 V8
I0-I6 (bits 8-14) provide the chip identification. At present there are four
possible settings. A value of 20 or 30 indicates HighRes Agnus from the ECS.
8361 (regular NTSC) or 8370 (fat NTSC) = 10 for NTSC Agnus
8367 (regular PAL) or 8371 (fat PAL) = 00 for PAL Agnus
8368 (hr) or 8372 (fat-hr) = 20 for PAL, 30 for NTSC
Similarly, the graphics.library flag GFXF_HR_DENISE is derived from the
Denise register DENISEID. This is a new register which can have of two
values present. The original Denise (8362) does not have this register, so
whatever value is left over on the bus from the last cycle will be there.
The HighRes Denise (8373) from the ECS will return FC in the lower 8 bits.
The upper 8 are reserved.
SuperHires Mode
---------------
SuperHires mode provides 35ns pixel display rate, twice as much horizontal
resolution as Hires mode and four times the Lores rates. The nominal
resolution of a SuperHires viewport is 1280 pixels. The maximum plane depth
for a SuperHires viewport is 2 bitplanes which saturates DMS bandwidth as
much as FOUR Hires bitplanes do. This mode is controlled by graphics.library
writing to the BPLCON0 register in the LOF copperlist (/SHF if interlaced).
BPLCON0 chg W A,D Bit plane control register (misc. control bits)
Bit Use
--------
15 HIRES Set it to zero if SHRES enabled
14 BPU2 \
13 BPU1 > Depth of SuperHires mode (1 or 2)
12 BPU0 /
11 HAM Incompatible with SuperHires mode
10 DPF Compatible with SuperHires mode
09
08
07
06 SHRES SuperHires 35ns pixel enable bit
05 BPLHWRM
04 SPRHWRM
03 LPEN Compatible with SuperHires mode
02 LACE Compatible with SuperHires mode
01
00
Programmers